import 'package:flutter/material.dart';
import './counter_bloc_demo.dart';
import './bloc_demo.dart';

class BlocDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CounterPorvider(
      counterBloc: CounterBloc(),
      child: Scaffold(
          appBar: AppBar(
            title: Text('Bloc'),
          ),
          body: CounterHome(),
          floatingActionButton: CounterActionButton()),
    );
  }
}
